<?php
/*
session_start();
require_once("settings.php");
require_once("functions.php");
//require_once("loadconfig.php");




// Create connection
$conn = new mysqli("localhost", "root", "pass7604", "ticketbox");
// Check connection
if ($conn->connect_error) {
	die("Connection failed: " . $conn->connect_error);
}

$sql = "INSERT INTO user (first_name, last_name, email,username,password,role_id) VALUES ('John', 'Admin', 'admin@example.com','user','". encrypt('pass7604') ."',1);";
$sql2 = "INSERT INTO user (first_name, last_name, email,username,password,role_id) VALUES ('John', 'User', 'user@example.com','user','". encrypt('pass7604') ."',0)";


if ($conn->query($sql) === TRUE) {
	echo "New record created successfully";
} else {
	echo "Error: " . $sql . "<br>" . $conn->error;
}
if ($conn->query($sql2) === TRUE) {
	echo "New record created successfully";
} else {
	echo "Error: " . $sql . "<br>" . $conn->error;
}

$conn->close();

*/
$chars = "abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ0123456789";
$n = rand(0, strlen($chars)-1);
echo $n;

?>

